import { Pipe, PipeTransform } from '@angular/core';

@Pipe({
  name: 'gradePoint'
})
export class GradePointPipe implements PipeTransform {

  transform(score: number, credit: number): number {
    return (score / 10 - 5) * credit;
  }
}
